package com.wzy.se;

import java.util.List;
import java.util.Random;
import java.util.stream.Collectors;
import java.util.stream.Stream;

/**
 * 描述  :
 * 创建人:    Wzy
 * 创建时间: 2020-05-24  16:44
 */
public class Pair<T> {
    T first;
    T second;

    public Pair(T first, T second) {
        this.first = first;
        this.second = second;
    }


    public T getFirst() {
        return first;
    }

    public void setFirst(T first) {
        this.first = first;
    }

    public T getSecond() {
        return second;
    }

    public void setSecond(T second) {
        this.second = second;
    }


    public static void main(String[] args) {
//        Pair<Integer> integerPair = new Pair<>(1, 6);
//        System.out.println(integerPair.getFirst());

        List<Integer> collect = Stream.generate(() -> new Random().nextInt(10)).limit(6).collect(Collectors.toList());

        System.out.println(collect);


    }
}
